import request from '@/config/axios'


//添加项目
export const dataInsert = (data) => {
  return request.post({ url: '/page-data/store', data })
}


//获取项目详情
export const dataInfo = (params) => {
  return request.get({ url: '/page-data/get-by-id',params })
}

//获取项目列表
export const dataList = (params) => {
  return request.get({ url: '/page-data/school-list',params })
}

//获取一级栏目
export const levelList = () => {
  return request.get({ url: '/page-column/list-by-level' })
}

//修改项目
export const dataUpdate = (data) => {
  return request.post({ url: '/page-data/update', data })
}


//复制项目
export const dataCopy = (params) => {
  return request.get({ url: '/page-column/copy', params })
}


export const dataDel = (params) => {
  return request.get({ url: '/page-data/delete', params })
}
